﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="TienTeTuong.Home" %>
<%@ Register TagPrefix="FT" TagName="Footer" Src="Footer.ascx" %>
<%@ Register TagPrefix="SPR" TagName="Sponsor" Src="Sponsor.ascx" %>
<%@ Register TagPrefix="Top" TagName="TopMenu" Src="~/Top.ascx" %>
<%@ Register TagPrefix="Count" TagName="Counter" Src="~/Counter.ascx" %>
<%@ Import Namespace="TienTeTuong" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Tien Te Tuong</title>
<link href="css/master.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="js/BuyEvent.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
   <div class="bgTexture"><div class="bgBottom"><div id="pageContent">

    <!-- HEADER -->
    	<div class="Header">
    	    
           <Top:TopMenu  runat="server"/>

        </div>
    <!-- end of HEADER -->

    <!-- MAIN BODY -->
    	<div class="widthBody">
        
        <!-- Main Menu -->
        	<div class="mainMenu"><ul>
            	<li class="current"><a href="Home.aspx">Trang chủ</a></li>
            	<li><a href="Categories.aspx">Sản phẩm</a></li>
            	<li><a href="Articles.aspx">Phong tục tập quán</a></li>
            	<li><a href="Contact.aspx">Liên hệ</a></li>
            	<li><a href="About.aspx">Sứ mệnh</a></li>
            	<%--<li><a href="#">Diễn đàn</a></li>--%>
            </ul></div>
            
            <div class="bodyBgTop"><div class="bodyBg">
            <!-- Gallery -->
            	<div class="gallerySize">
				    <div class="galleryBg">
                	<a href="#"><img src="images/gallery_01.jpg" class="galleryImg"/></a>
                    <a href="#"><img src="images/gallery_02.jpg" class="galleryImg"/></a>
                    <a href="#"><img src="images/gallery_03.jpg" class="galleryImg"/></a>
                    <a href="#"><img src="images/gallery_04.jpg" class="galleryImg"/></a>
                </div>
                </div>
            <!-- Main Column -->
                <div class="widthMain" style="height:600px">
                <!-- Feature Products -->
                	<div class="featureProduct">
                    	<div class="homeTitle">Sản phẩm hot</div>
                        <div class="Content">
                            <% foreach (var val in lstHotCateDetail)
                               {
                                        
                                %>
                        	<div class="featureProductTD"><table width="100%" cellpadding="0" cellspacing="10">
                            	<tr>
                                	<td class="featureProductImg"><a href="productDetail.aspx?CateDetailID=<%=val.CateDetailID %>&CateID=<%=val.CateID %>"><img src="<%= Common.CheckLinkPhoto(val.Image) %>"/></a></td>
                                    <td>
                                    	<div class="Title"><a href="productDetail.aspx?CateDetailID=<%=val.CateDetailID %>&CateID=<%=val.CateID %>"> <%= val.Name %></a></div>
                                        <div class="productPrice"><span><%=Common.DisplayAsMoney(val.Price.ToString())%></span> VNĐ</div>
                                        <div class="btnCart" rel = "<%=val.CateDetailID %>|<%=val.CateID %>"><div class="btnCartBg"><a href="javascript:void(0)">Đặt hàng</a></div></div>
                                        <span class="productDetailLink"><a href="productDetail.aspx?CateDetailID=<%=val.CateDetailID %>&CateID=<%=val.CateID %>">Xem chi tiết</a></span>
                                        <div class="clear"></div>
                                    </td>
                                </tr>
                            </table></div>
                        <%} %>
                        </div>
                    </div>
                <!-- Articles -->
                	<div class="featureArticle">
                    	<div class="homeTitle">Bài viết nổi bật</div>
                        <div class="featureArticleBg">
                            
                            <% foreach (var val in lstArticle)
                               { %>
                        	<div class="featureArticleTD"><table width="100%" cellpadding="0" cellspacing="10"><tr valign="top">
                                <td>
                                	<span class="Title"><a href="ArticleDetail.aspx?id=<%=val.ArtID %>"><%= val.Title %></a></span>
                                    <p><%= val.ShortDescript %></p>
                                </td>
                            	<td class="featureArticleImg"><a href="ArticleDetail.aspx?id=<%=val.ArtID %>"><img src="<%= Common.CheckLinkPhoto(val.Image) %>"/></a></td>
                            </tr></table></div>

                        	<% } %>

                       
                        </div>
                    </div>
                    
                    <div class="clear"></div>
                </div>
            <!-- end of Main Column -->
    
            <!-- Right Column -->
                <div class="widthRight">
                <!-- Mạnh thường quân -->
                	<div class="rightMenu rightMenuHome">
                    	<SPR:Sponsor runat="server" />
                    </div>
         
                    <Count:Counter ID="Counter1" runat="server"/>
                </div>
            <!-- end of Right Column -->
            
                <div class="clear"></div>
			</div></div>
        </div>
    <!-- end of MAIN BODY -->

    <!-- FOOTER -->
    	<div class="Footer">
        	<FT:Footer runat="server"/>
        </div>
    <!-- end of FOOTER -->
	</div></div></div>
    </form>
    <script language = "javascript" type ="text/javascript">
        $('.mainMenu ul').css('position', 'absolute');
    </script>
</body>
</html>
